BoltCheckout\Bolt_Checkout D

Total Complexity 250
Dependencies 18
Dependents 1
Total lines 1,959
Lines of code 1,137
Logical lines of code 569
Comment lines 628
Methods 58
Properties 7

Methods 58

Method Rating Maintainability Complexity Lines of code
do_checkout_validation()
B
38 20 68
process_checkout()
A
36 13 83
set_post_array_from_bolt_transaction()
A
40 10 57
compare_cart_discount_data_with_bolt_data()
A
42 9 53
recalculate_order_shipping()
A
47 9 33
check_if_order_exists_by_order_reference_and_shipping()
A
41 7 62
save_non_bolt_order()
A
46 8 39
check_if_user_just_created()
A
50 8 29
check_if_shipping_changed()
A
44 7 40
get_order_redirect_url()
A
46 7 39
get_shipping_address()
A
58 8 16
acquire_order_creation_lock()
S
52 7 25
destroy_bolt_order_details_unique_data()
S
52 7 24
get_billing_address()
S
59 7 16
validate_address_in_posted_data()
S
52 6 25
compare_cart_shipping_data_with_bolt_data()
S
52 6 24
save_email()
S
53 6 23
save_bolt_transaction_order()
S
49 5 35
handle_shipping_method()
S
60 6 13
process_order_payment()
S
57 5 16
enqueue_bolt_scripts()
S
51 4 24
prepare_posted_data()
S
54 4 21
process_pay_invoiceemail()
S
56 4 18
get_tax_total_by_bolt_transaction()
S
66 5 9
before_validate_checkout()
S
60 4 13
save_transaction()
S
62 4 12
init_hooks()
S
45 1 56
check_if_need_override_shipping()
S
63 4 11
cancel_unpaid_order()
S
62 4 11
process_order_without_payment()
S
55 3 21
compare_with_bolt_data_before_order_creation()
S
64 4 10
save_order()
S
60 3 14
compare_cart_tax_data_with_bolt_data()
S
55 2 20
process_hooks_after_order_creation()
S
56 2 19
compare_cart_totals_with_bolt_data()
S
57 2 16
simulate_native_wc_post_data()
S
72 3 5
create_redirect_url()
S
64 3 10
remove_cancel_action()
S
64 3 10
save_transaction_pre_auth()
S
59 2 14
recalculate_order_tax()
S
60 2 12
instance()
S
70 2 7
setup_common_data()
S
68 2 7
get_order_shipping_method()
S
66 2 9
set_order_customer_note()
S
74 2 5
get_bolt_order_total()
S
75 2 4
empty_wp_rocket_cache()
S
75 2 5
extract_order_changes()
S
67 2 8
record_frontend_error()
S
70 2 5
set_error_handler()
S
81 1 3
__construct()
S
80 1 3
reset()
S
71 1 6
update_order_for_saving_transaction()
S
73 1 6
calculate_order_price_difference()
S
74 1 4
send_order_price_difference_to_bugsnag()
S
73 1 4
finish_order_creation_asynchronously()
S
78 1 4
add_order_number_to_display_id()
S
72 1 5
get_bolt_transaction()
S
81 1 3
release_order_creation_lock()
S
79 1 3